package cn.lucky.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lingpeng.jiang
 * @create 2020-11-30-23:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 提示信息
     */
    private String  message;

    /**
     * 响应数据
     */
    private T       data;

    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
